/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.crab.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.kaaction.common.persistence.CrudDao;
import com.kaaction.common.persistence.annotation.MyBatisDao;
import com.kaaction.modules.crab.entity.CouponDetail;
import com.kaaction.modules.crab.entity.Order;

/**
 * 兑换券查看DAO接口
 * @author huanghaiming
 * @version 2017-07-19
 */
@MyBatisDao
public interface CouponDetailDao extends CrudDao<CouponDetail> {

	void insertCouponDetail(List<Map<String, Object>> list);

	void updateBatchRemarks(Map<String, Object> map);

	void updateBatchActivate(Map<String, Object> map);

	void udateCouponName(CouponDetail couponDetail);

	void deleteCoupon(String id);

	Map<String, Object> selCoupon(@Param("cardNum")String cardNum, @Param("password")String password);

	Map<String, Object> selCardNumMsg(String cardNum);

	void updateState(Order order);

	int getEqual(String cardNum);

	void updateCoupon(CouponDetail couponDetail);

	int selCnt(List<String> strList);
	
}